/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MyIM.component;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author satthuvdh
 */
public class Group implements Serializable{

    private ArrayList<Friend> friends;
    private String groupName;
    private int groupId;
    private int ownID;

    public Group(int ownID, int groupId, String groupName, ArrayList<Friend> friends) {
        this.ownID = ownID;
        this.groupId = groupId;
        this.groupName = groupName;
        this.friends = friends;
    }

    public void addFriend(Friend friend) {
        friends.add(friend);
    }

    public int getGroupId() {
        return groupId;
    }

    public int getOwnID() {
        return ownID;
    }

    public String getGroupName() {
        return groupName;
    }

    public ArrayList<Friend> getFriends() {
        return friends;
    }
    
    
}
